<template>
  <el-submenu
    ref="subMenu"
    :index="fullPath"
    :popper-append-to-body="false"
  >
    <template slot="title">
      <i :class="'icon iconfont ' + item.meta.icon "></i>
      <span style='padding-left: 12px;font-size: 14px'>{{ item.meta.title }}</span>
    </template>
    <slot />
  </el-submenu>
</template>

<script>
export default {
  name: 'subMenu',
  props: {
    item: {
      type: Object,
      default() {
        return null
      },
    },
    fullPath: {
      type: String,
      default: '',
    },
  }
}
</script>

<style scoped>

</style>